Skip to content

Lower handoff artifact warnings to debug#3531

Merged
trunk-io[bot] merged 1 commit into
mainfrom
posthog-code/debug-handoff-artifact-logs
Jul 17, 2026
Merged

Lower handoff artifact warnings to debug#3531
trunk-io[bot] merged 1 commit into
mainfrom
posthog-code/debug-handoff-artifact-logs

Conversation

@tatoalo

@tatoalo tatoalo commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

Problem

Routine handoff artifact size limits are expected behavior but currently appear as warnings to users, adding noise to the visible log stream.

Changes

Lower the artifact-size skip and resulting checkpoint-discard messages from warning to debug level.

Generated-By: PostHog Code
Task-Id: a72538a4-57ff-4bb0-ac51-133ba48fba99
@trunk-io

trunk-io Bot commented Jul 17, 2026

Copy link
Copy Markdown

😎 Merged directly without going through the merge queue, as the queue was empty and the PR was up to date with the target branch - details.

@github-actions

Copy link
Copy Markdown

React Doctor found no issues in the changed files. 🎉

Reviewed by React Doctor for commit 1003758.

@tatoalo tatoalo self-assigned this Jul 17, 2026
@tatoalo tatoalo added the Stamphog This will request an autostamp by stamphog on small changes label Jul 17, 2026
@tatoalo
tatoalo marked this pull request as ready for review July 17, 2026 08:59
@tatoalo
tatoalo enabled auto-merge (squash) July 17, 2026 08:59

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Two warn→debug log level changes with no logic affected. No showstoppers.

@greptile-apps

greptile-apps Bot commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

Reviews (1): Last reviewed commit: "Lower handoff artifact logs to debug" | Re-trigger Greptile

Comment on lines +131 to 132
this.logger.debug(
"Discarding handoff checkpoint: required artifact uploads did not complete",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Unexpected Discards Lose Warning Signal

This branch also runs when required uploads are missing because direct and inline upload attempts failed, not only when an artifact exceeded its expected size limit. Log collectors that exclude debug entries will lose the final checkpoint-discard event and its checkpoint ID, upload state, and artifact sizes, making unexpected checkpoint loss harder to diagnose.

Suggested change
this.logger.debug(
"Discarding handoff checkpoint: required artifact uploads did not complete",
this.logger.warn(
"Discarding handoff checkpoint: required artifact uploads did not complete",

Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!

@trunk-io
trunk-io Bot merged commit fc33dfb into main Jul 17, 2026
38 checks passed
@trunk-io
trunk-io Bot deleted the posthog-code/debug-handoff-artifact-logs branch July 17, 2026 09:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Stamphog This will request an autostamp by stamphog on small changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant